<?php
/* @var $form BootActiveForm */


?>

<div class="form">
    <?php $form=$this->beginWidget('bootstrap.widgets.BootActiveForm',array(
            'id'=>'user-form',
            'enableAjaxValidation'=>false,
            'method'=>'post',
            'type'=>'horizontal',
            'htmlOptions'=>array(
                    'enctype'=>'multipart/form-data'
            )
)); ?>

    <fieldset>
        <legend>Felhasználó</legend>

        <div class="control-group">
            <div class="span4">

                <?php echo $form->textFieldRow($model,'username',array('class'=>'span5','maxlength'=>255)); ?>

                <?php echo $form->passwordFieldRow($model,'password',array('class'=>'span5','maxlength'=>255)); ?>

                <?php echo $form->textFieldRow($model,'email',array('class'=>'span5','maxlength'=>255)); ?>

                <?php echo $form->checkBoxRow($model
                        ,'active'
                         ,array('value' => '1', 'uncheckValue'=>'0'));  ?>

            </div>
        </div>

        <div class="form-actions">
            <?php $this->widget('bootstrap.widgets.BootButton', array(
                    'buttonType'=>'submit',
                    'type'=>'primary',
                    'icon'=>'ok white',
                    'label'=>'Mentés',
		    )); ?>
        </div>
    </fieldset>

    <?php $this->endWidget(); ?>

</div>
